home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / gnu / emacs_src_18_58.lha / emacs-18.58 / src / ymakefile < prev   
Makefile  |  1992-09-21  |  18KB  |  630 lines

  1. /* Makefile for GNU Emacs.
  2.    Copyright (C) 1985, 1987, 1988, 1990 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 1, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20.  
  21. #ifdef AMIGA
  22. dot =
  23. #else
  24. dot = .
  25. #endif
  26. /* on Xenix, replace double-dot below with $(dot)$(dot) */
  27. lispdir = $(dot)$(dot)/lisp/
  28. etcdir = $(dot)$(dot)/etc/
  29. shortnamesdir = $(dot)$(dot)/shortnames/
  30. cppdir = $(dot)$(dot)/cpp/
  31. oldXMenudir = $(dot)$(dot)/oldXMenu/
  32.  
  33. /* Just to avoid uncertainty.  */
  34. SHELL = /bin/sh
  35.  
  36. #define NO_SHORTNAMES
  37. #include "config.h"
  38.  
  39. /* Use HAVE_X11 as an alias for X11 in this file
  40.    to avoid problems with X11 as a subdirectory name
  41.    in -I and other such options which pass through this file. */
  42.  
  43. #ifdef X11
  44. #define HAVE_X11
  45. #undef X11
  46. #endif
  47.  
  48. /* On some machines #define register is done in config;
  49.    don't let it interfere with this file.  */
  50. #undef register
  51.  
  52. /* On some systems we may not to use the system make command. */
  53. #ifdef MAKE_COMMAND
  54. MAKE = MAKE_COMMAND
  55. #else
  56. MAKE=make
  57. #endif
  58.  
  59. #ifdef C_COMPILER
  60. CC = C_COMPILER
  61. #endif
  62.  
  63. /* Some machines don't find the standard C libraries in the usual place.  */
  64. #ifndef LIB_STANDARD
  65. #define LIB_STANDARD -lc
  66. #endif
  67.  
  68. /* Unless inhibited or changed, use -lg to link for debugging.  */
  69. #ifndef LIBS_DEBUG
  70. #define LIBS_DEBUG -lg
  71. #endif
  72.  
  73. /* Some s- files define this to request special libraries.  */
  74. #ifndef LIBS_SYSTEM
  75. #define LIBS_SYSTEM
  76. #endif
  77.  
  78. /* Some m- files define this to request special libraries.  */
  79. #ifndef LIBS_MACHINE
  80. #define LIBS_MACHINE
  81. #endif
  82.  
  83. /* Some s- files define this to request special switches in ld.  */
  84. #ifndef LD_SWITCH_SYSTEM
  85. #if defined (BSD) && !defined (COFF)
  86. #define LD_SWITCH_SYSTEM -X
  87. #else
  88. #define LD_SWITCH_SYSTEM
  89. #endif /* COFF, or not BSD */
  90. #endif
  91.  
  92. /* Some m- files define this to request special switches in ld.  */
  93. #ifndef LD_SWITCH_MACHINE
  94. #define LD_SWITCH_MACHINE
  95. #endif
  96.  
  97. /* Some m- files define this to request special switches in cc.  */
  98. #ifndef C_SWITCH_MACHINE
  99. #define C_SWITCH_MACHINE
  100. #endif
  101.  
  102. #ifndef C_SWITCH_SYSTEM
  103. #define C_SWITCH_SYSTEM
  104. #endif
  105.  
  106. #ifndef START_FILES
  107. #ifdef NO_REMAP
  108. #define START_FILES pre-crt0.o /lib/crt0.o
  109. #else
  110. #define START_FILES crt0.o
  111. #endif
  112. #endif /* have START_FILES */
  113. STARTFILES = START_FILES
  114.  
  115. /* This macro says how to compile for debugging.
  116.    If you want to optimize, DON'T change this macro.
  117.    Instead, replace C_DEBUG_SWITCH with C_OPTIMIZE_SWITCH
  118.    where CFLAGS is set.  */
  119. #ifndef C_DEBUG_SWITCH
  120. #define C_DEBUG_SWITCH -g
  121. #endif
  122.  
  123. /* If user wants to optimize, this is how.  */
  124. #ifndef C_OPTIMIZE_SWITCH
  125. #define C_OPTIMIZE_SWITCH -O
  126. #endif
  127.  
  128. /* cc switches needed to make `asm' keyword work.
  129.    Nothing special needed on most machines.  */
  130. #ifndef C_SWITCH_ASM
  131. #define C_SWITCH_ASM
  132. #endif
  133.  
  134. /* Specify address for ld to start loading at,
  135.    if requested by configuration.  */
  136.  
  137. #ifdef LD_TEXT_START_ADDR
  138. STARTFLAGS = -T LD_TEXT_START_ADDR -e __start
  139. #endif
  140.  
  141. #ifndef LINKER
  142. #define LINKER ld
  143. #endif
  144. LD=LINKER
  145. LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_MACHINE
  146.  
  147. /* Figure out whether the system cpp can handle long names.
  148.    Do it by testing it right now.
  149.    If it loses, arrange to use the GNU cpp.  */
  150.  
  151. #define LONGNAMEBBBFOOX
  152. #ifdef LONGNAMEBBBARFOOX
  153. /* Installed cpp fails to distinguish those names!  */
  154. /* Arrange to compile the GNU cpp later on */
  155. #define NEED_CPP
  156. /* Cause cc to invoke the cpp that comes with Emacs,
  157.    which will be in a file named localcpp.  */
  158. MYCPPFLAG= -Blocal
  159. /* LOCALCPP is the local one or nothing.
  160.    CPP is the local one or the standardone.  */
  161. LOCALCPP= localcpp
  162. #endif /* NEED_CPP */
  163.  
  164. #ifdef SHORTNAMES
  165. SHORT= shortnames
  166. #endif /* SHORTNAMES */
  167.  
  168. #ifdef AMIGA
  169. CFLAGS= C_DEBUG_SWITCH -demacs $(MYCPPFLAG) C_SWITCH_MACHINE C_SWITCH_SYSTEM
  170. CPPFLAGS= -Demacs -DAMIGA -D__SASC -D__SASC_510 CPP_SWITCH_SYSTEM
  171. #else
  172. CFLAGS= C_DEBUG_SWITCH -Demacs $(MYCPPFLAG) C_SWITCH_MACHINE C_SWITCH_SYSTEM
  173. #endif
  174. /* DO NOT use -R.  There is a special hack described in lastfile.c
  175.    which is used instead.  Some initialized data areas are modified
  176.    at initial startup, then labeled as part of the text area when
  177.    Emacs is dumped for the first time, and never changed again. */
  178.  
  179. /* You may replace C_DEBUG_SWITCH with C_OPTIMIZE_SWITCH
  180.    if you don't believe in debugging. */
  181.  
  182. /* -Demacs is needed to make some files produce the
  183.    correct version for use in Emacs.  */
  184.  
  185. #ifndef LIBX10_MACHINE
  186. #define LIBX10_MACHINE
  187. #endif
  188.  
  189. #ifndef LIBX11_MACHINE
  190. #define LIBX11_MACHINE
  191. #endif
  192.  
  193. #ifndef LIBX10_SYSTEM
  194. #define LIBX10_SYSTEM
  195. #endif
  196.  
  197. #ifndef LIBX11_SYSTEM
  198. #define LIBX11_SYSTEM
  199. #endif
  200.  
  201. #ifndef LIB_X11_LIB
  202. #define LIB_X11_LIB -lX11
  203. #endif
  204.  
  205. #ifdef HAVE_X_WINDOWS
  206. #ifdef HAVE_X11
  207. #ifdef HAVE_X_MENU
  208. OLDXMENU = libXMenu11.a
  209. XOBJ = x11term.o x11fns.o xmenu.o
  210. LIBX = $(OLDXMENU) -loldX LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
  211. #else
  212. XOBJ = x11term.o x11fns.o
  213. LIBX = LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
  214. #endif
  215. #else /* not HAVE_X11 */
  216. #ifdef HAVE_X_MENU
  217. XOBJ= xterm.o xfns.o xmenu.o
  218. LIBX= -lXMenu -lX LIBX10_MACHINE LIBX10_SYSTEM
  219. #else
  220. XOBJ= xterm.o xfns.o
  221. LIBX= -lX LIBX10_MACHINE LIBX10_SYSTEM
  222. #endif /* not HAVE_X_MENU */
  223. #endif /* not HAVE_X11 */
  224. #endif /* HAVE_X_WINDOWS */
  225.  
  226. /* Fix linking if compiled with GCC.  */
  227. #ifdef __GNUC__
  228. #if __GNUC__ > 1
  229. #ifndef LIB_GCC
  230. #define LIB_GCC -lgcc
  231. #endif
  232. GNULIB_VAR = LIB_GCC
  233. #else /* __GNUC__ <= 1 */
  234. #ifndef LIB_GCC
  235. #define LIB_GCC /usr/local/lib/gcc-gnulib
  236. #endif
  237. GNULIB_VAR = `if [ -f LIB_GCC ] ; then echo LIB_GCC; else echo; fi`
  238. #endif /* __GNUC__ <= 1 */
  239. #else
  240. GNULIB_VAR =
  241. #endif
  242.  
  243. #ifdef MAINTAIN_ENVIRONMENT
  244. environobj = environ.o
  245. #endif /* MAINTAIN_ENVIRONMENT */
  246.  
  247. /* Allow config.h to specify a replacement file for unexec.c.  */
  248. #ifndef UNEXEC
  249. #define UNEXEC unexec.o
  250. #endif
  251.  
  252. termobjs= term.o cm.o
  253.  
  254. #ifdef AMIGA
  255. SYSDEP= amiga_sysdep.o
  256. #else
  257. SYSDEP= sysdep.o
  258. #endif
  259.  
  260. /* lastfile must follow all files
  261.    whose initialized data areas should be dumped as pure by dump-emacs. */
  262. obj=    dispnew.o scroll.o xdisp.o window.o \
  263.     $(termobjs) $(XOBJ) \
  264.     emacs.o keyboard.o macros.o keymap.o $(SYSDEP) \
  265.     buffer.o filelock.o insdel.o marker.o \
  266.     minibuf.o fileio.o dired.o filemode.o \
  267.     cmds.o casefiddle.o indent.o search.o regex.o undo.o \
  268.     alloc.o data.o doc.o editfns.o callint.o \
  269.     eval.o fns.o print.o lread.o \
  270.     abbrev.o syntax.o UNEXEC mocklisp.o bytecode.o \
  271.     process.o callproc.o $(environobj) \
  272.     doprnt.o
  273.  
  274. #ifdef TERMINFO
  275. /* Used to be -ltermcap here.  If your machine needs that,
  276.    define LIBS_TERMCAP in the m- file.  */
  277. #ifndef LIBS_TERMCAP
  278. #define LIBS_TERMCAP -lcurses
  279. #endif
  280. termcapobj = terminfo.o
  281. #else
  282. #ifndef LIBS_TERMCAP
  283. #define LIBS_TERMCAP
  284. termcapobj = termcap.o tparam.o
  285. #else
  286. termcapobj = tparam.o
  287. #endif
  288. #endif
  289.  
  290. #ifndef SYSTEM_MALLOC
  291. #ifdef HAVE_ALLOCA
  292. mallocobj = malloc.o
  293. #else
  294. mallocobj = alloca.o malloc.o
  295. #endif
  296. #else /* SYSTEM_MALLOC */
  297. #ifndef HAVE_ALLOCA
  298. mallocobj = alloca.o
  299. #endif
  300. #endif
  301.  
  302. /* define otherobj as list of object files that make-docfile
  303.    should not be told about.  */
  304. otherobj= $(termcapobj) lastfile.o $(mallocobj)
  305.  
  306. /* List of Lisp files loaded into the dumped Emacs. */
  307. lisp=    ${lispdir}simple.elc ${lispdir}help.elc \
  308.     ${lispdir}files.elc ${lispdir}window.elc \
  309.     ${lispdir}indent.elc ${lispdir}loaddefs.el ${lispdir}paths.el \
  310.     ${lispdir}startup.elc ${lispdir}lisp.elc \
  311.     ${lispdir}page.elc ${lispdir}register.elc \
  312.     ${lispdir}paragraphs.elc ${lispdir}lisp-mode.elc \
  313.     ${lispdir}text-mode.elc ${lispdir}fill.elc \
  314.     ${lispdir}c-mode.elc ${lispdir}isearch.elc \
  315.     ${lispdir}replace.elc ${lispdir}abbrev.elc \
  316.     ${lispdir}buff-menu.elc ${lispdir}subr.elc
  317.  
  318. /* just to be sure the sh is used */
  319. SHELL=/bin/sh
  320.  
  321. /* Construct full set of libraries to be linked.  */
  322. LIBES = LIBS_TERMCAP $(LIBX) LIBS_SYSTEM LIBS_MACHINE LIBS_DEBUG $(GNULIB_VAR) LIB_STANDARD
  323.  
  324. /* Enable recompilation of certain other files depending on system type.  */
  325.  
  326. #ifndef OTHER_FILES
  327. #define OTHER_FILES
  328. #endif
  329.  
  330. /* Enable inclusion of object files in temacs depending on system type.  */
  331. #ifndef OBJECTS_SYSTEM
  332. #define OBJECTS_SYSTEM
  333. #endif
  334.  
  335. #ifndef OBJECTS_MACHINE
  336. #define OBJECTS_MACHINE
  337. #endif
  338.  
  339. all: xemacs OTHER_FILES
  340.  
  341. xemacs: temacs # ${etcdir}DOC ${lisp}
  342. #ifdef HAVE_SHM
  343.     ./temacs -nl -batch -l inc-vers
  344.     ./temacs -nl -batch -l loadup dump
  345.     ln temacs xemacs
  346. #else
  347. #ifdef CANNOT_DUMP
  348.     mv temacs xemacs
  349. #else
  350. #ifdef AMIGA
  351.     -delete ${etcdir}EMACS-DATA xemacs force
  352.     temacs -nl -batch -l inc-vers
  353.     temacs -nl -batch -l loadup.el dump
  354.     -makelink xemacs temacs
  355. #else
  356.     ./temacs -batch -l inc-vers
  357.     ./temacs -batch -l loadup.el dump
  358. #endif /* not AMIGA */
  359. #endif /* not CANNOT_DUMP */
  360. #endif /* not HAVE_SHM */
  361.  
  362. ${etcdir}DOC: ${etcdir}make-docfile ${obj} ${lisp}
  363. #ifdef AMIGA
  364. REDIRECT_IN= <
  365.     -delete force ${etcdir}DOC
  366.     ${etcdir}make-docfile >${etcdir}DOC $(REDIRECT_IN) < <
  367. ${obj}
  368. ${lisp}
  369. ${lispdir}version.el
  370. ${lispdir}amiga-menu.elc ${lispdir}amiga-init.elc ${lispdir}amiga-mouse.elc
  371. OBJECTS_SYSTEM
  372. <
  373. #else
  374.     rm -f ${etcdir}DOC
  375.     ${etcdir}make-docfile ${obj} ${lisp} ${lispdir}version.el > ${etcdir}DOC
  376. #endif
  377.  
  378. #ifdef AMIGA
  379. ${etcdir}make-docfile: ${etcdir}make-docfile.c
  380.     lc -L /etc/make-docfile
  381. #else
  382. ${etcdir}make-docfile:
  383.     cd ${etcdir}; ${MAKE} ${MFLAGS} make-docfile
  384. #endif
  385.  
  386. /* Some systems define this to cause parallel Make-ing.  */
  387. #ifndef MAKE_PARALLEL
  388. #define MAKE_PARALLEL
  389. #endif
  390.  
  391. temacs: MAKE_PARALLEL $(LOCALCPP) $(SHORT) $(STARTFILES) $(OLDXMENU) ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE
  392. #ifdef AMIGA
  393.     blink <with <
  394. from ${STARTFILES} $(obj) OBJECTS_SYSTEM OBJECTS_MACHINE $(otherobj)
  395. to temacs
  396. lib LIB_STANDARD
  397. nodebug
  398. batch
  399. <
  400.  
  401. demacs: MAKE_PARALLEL $(LOCALCPP) $(SHORT) $(STARTFILES) $(OLDXMENU) ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE
  402. #ifdef AMIGA
  403.     blink <with <
  404. from ${STARTFILES} $(obj) OBJECTS_SYSTEM OBJECTS_MACHINE $(otherobj)
  405. to demacs
  406. lib LIB_STANDARD
  407. map ram:emacs.map,h,x
  408. addsym
  409. swidth 16
  410. batch
  411. <
  412. #else
  413.     $(LD) ${STARTFLAGS} ${LDFLAGS} -o temacs ${STARTFILES} ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE ${LIBES}
  414. #endif
  415.  
  416. /* These are needed for C compilation, on the systems that need them */
  417. #ifdef NEED_CPP
  418. CPP = ./localcpp
  419. localcpp:
  420.     cd ${cppdir}; ${MAKE} ${MFLAGS} EMACS=-DEMACS
  421.     ln ${cppdir}cpp localcpp  /* Name where CFLAGS will refer to it */
  422. /* cc appears to be cretinous and require all of these to exist
  423.    if -B is specified -- we can't use one local pass and let the
  424.    others be the standard ones.  What a loser.
  425.    We can't even use ln, since they are probably
  426.    on different disks.  */
  427.     cp /lib/ccom localccom
  428.     -cp /lib/optim localoptim
  429.     -cp /lib/c2 localc2
  430.     cp /bin/as localas
  431. #else /* not NEED_CPP */
  432. CPP = $(CC) -E
  433. #endif /* need NEED_CPP */
  434.  
  435. #ifdef SHORTNAMES
  436. shortnames:
  437.     cd ${shortnamesdir}; ${MAKE} ${MFLAGS}
  438. #endif /* SHORTNAMES */
  439.  
  440. /* Don't lose if this was not defined.  */
  441. #ifndef OLDXMENU_OPTIONS
  442. #define OLDXMENU_OPTIONS
  443. #endif
  444.  
  445. #ifdef HAVE_X_WINDOWS
  446. #ifdef HAVE_X_MENU
  447. #ifdef HAVE_X11
  448. $(OLDXMENU):
  449.     cd ${oldXMenudir}; ${MAKE} ${MFLAGS} OLDXMENU_OPTIONS
  450.     ln ${oldXMenudir}libXMenu11.a $(OLDXMENU) || cp ${oldXMenudir}libXMenu11.a $(OLDXMENU)
  451. #endif /* HAVE_X11 */
  452. #endif /* HAVE_X_MENU */
  453. #endif /* HAVE_X_WINDOWS */
  454.  
  455. paths.h: paths.h-dist
  456.     echo paths.h needs to be set up from paths.h-dist
  457.     exit 1
  458.  
  459. config.h: config.h-dist
  460.     echo config.h needs to be set up from config.h-dist
  461.     exit 1
  462.  
  463. /* Some machines have alloca built-in.
  464.    They should define HAVE_ALLOCA, or may just let alloca.s
  465.    be used but generate no code.
  466.    Some have it written in assembler in alloca.s.
  467.    Some use the C version in alloca.c (these define C_ALLOCA in config.h).
  468.    */
  469.  
  470. #ifdef C_ALLOCA
  471. alloca.o : alloca.c
  472. #else
  473. #ifndef HAVE_ALLOCA
  474. alloca.o : alloca.s config.h
  475. /* $(CPP) is cc -E, which may get confused by filenames
  476.    that do not end in .c.  So copy file to a safe name.  */
  477.     cp alloca.s allocatem.c
  478. /* remove any ^L, blank lines, and preprocessor comments,
  479.    since some assemblers barf on them */
  480.     $(CPP) allocatem.c | \
  481.     sed -e 's/ //' -e 's/^#.*//' | \
  482.     sed -n -e '/^..*$$/p' > allocatem.s
  483.     -rm -f alloca.o
  484. /* Xenix, in particular, needs to run assembler via cc.  */
  485.     cc -c allocatem.s
  486.     mv allocatem.o alloca.o
  487.     rm allocatem.s allocatem.c
  488. #endif /* HAVE_ALLOCA */
  489. #endif /* not C_ALLOCA */
  490.  
  491. /* Nearly all the following files depend on lisp.h,
  492.    but it is not included as a dependency because
  493.    it is so often changed in ways that do not require any recompilation
  494.    and so rarely changed in ways that do require any.  */
  495.  
  496. abbrev.o : abbrev.c buffer.h commands.h config.h
  497. buffer.o : buffer.c syntax.h buffer.h commands.h window.h config.h
  498. callint.o : callint.c window.h commands.h buffer.h config.h
  499. callproc.o : callproc.c paths.h buffer.h commands.h config.h
  500. #ifdef AMIGA
  501.     /cpp/cpp >ram:cpp.c $(CPPFLAGS) $*.c
  502.     lc $(CFLAGS) -o$@ ram:cpp.c
  503. #endif
  504. casefiddle.o : casefiddle.c syntax.h commands.h buffer.h config.h
  505. cm.o : cm.c cm.h termhooks.h config.h
  506. cmds.o : cmds.c syntax.h buffer.h commands.h config.h
  507. crt0.o : crt0.c config.h
  508.     $(CC) -c $(CFLAGS) C_SWITCH_ASM crt0.c
  509. dired.o : dired.c commands.h buffer.h config.h
  510. #ifdef AMIGA
  511.     /cpp/cpp >ram:cpp.c $(CPPFLAGS) $*.c
  512.     lc $(CFLAGS) -o$@ ram:cpp.c
  513. #endif
  514. dispnew.o : dispnew.c commands.h window.h buffer.h dispextern.h termchar.h termopts.h cm.h config.h
  515. doc.o : doc.c buffer.h config.h paths.h
  516. #ifdef AMIGA
  517.     /cpp/cpp >ram:cpp.c $(CPPFLAGS) $*.c
  518.     lc $(CFLAGS) -o$@ ram:cpp.c
  519. #endif
  520. doprnt.o : doprnt.c
  521. editfns.o : editfns.c window.h buffer.h config.h
  522. #ifdef AMIGA
  523.     /cpp/cpp >ram:cpp.c $(CPPFLAGS) $*.c
  524.     lc $(CFLAGS) -o$@ ram:cpp.c
  525. #endif
  526. emacs.o : emacs.c commands.h config.h
  527. #ifdef MAINTAIN_ENVIRONMENT
  528. environ.o : environ.c buffer.h commands.h config.h
  529. #endif /* MAINTAIN_ENVIRONMENT */
  530. fileio.o : fileio.c window.h buffer.h config.h
  531. filelock.o : filelock.c buffer.h paths.h config.h
  532. filemode.o : filemode.c
  533. indent.o : indent.c window.h indent.h buffer.h config.h termchar.h termopts.h
  534. insdel.o : insdel.c window.h buffer.h config.h
  535. keyboard.o : keyboard.c termchar.h termhooks.h termopts.h buffer.h commands.h window.h macros.h config.h
  536. keymap.o : keymap.c buffer.h commands.h config.h
  537. #ifdef AMIGA
  538.     /cpp/cpp >ram:cpp.c $(CPPFLAGS) $*.c
  539.     lc $(CFLAGS) -o$@ ram:cpp.c
  540. #endif
  541. lastfile.o : lastfile.c
  542. #ifdef AMIGA
  543.     lc $(CFLAGS) -dAMIGA_DUMP $*.c
  544. #endif
  545. macros.o : macros.c window.h buffer.h commands.h macros.h config.h
  546. malloc.o : malloc.c config.h
  547. marker.o : marker.c buffer.h config.h
  548. minibuf.o : minibuf.c syntax.h window.h buffer.h commands.h config.h
  549. #ifdef AMIGA
  550.     /cpp/cpp >ram:cpp.c $(CPPFLAGS) $*.c
  551.     lc $(CFLAGS) -o$@ ram:cpp.c
  552. #endif
  553. mocklisp.o : mocklisp.c buffer.h config.h
  554. process.o : process.c process.h buffer.h window.h termhooks.h termopts.h commands.h dispextern.h config.h
  555. #ifdef AMIGA
  556.     /cpp/cpp >ram:cpp.c $(CPPFLAGS) $*.c
  557.     lc $(CFLAGS) -o$@ ram:cpp.c
  558. #endif
  559. regex.o : regex.c syntax.h buffer.h config.h regex.h
  560. scroll.o : scroll.c termchar.h config.h dispextern.h termhooks.h
  561. search.o : search.c regex.h commands.h buffer.h syntax.h config.h
  562. #ifdef AMIGA
  563.     /cpp/cpp >ram:cpp.c $(CPPFLAGS) $*.c
  564.     lc $(CFLAGS) -o$@ ram:cpp.c
  565. #endif
  566. syntax.o : syntax.c syntax.h buffer.h commands.h config.h
  567. #ifdef AMIGA
  568.     /cpp/cpp >ram:cpp.c $(CPPFLAGS) $*.c
  569.     lc $(CFLAGS) -o$@ ram:cpp.c
  570. #endif
  571. sysdep.o : sysdep.c config.h dispextern.h termhooks.h termchar.h termopts.h window.h
  572. term.o : term.c termchar.h termhooks.h termopts.h config.h cm.h
  573. termcap.o : termcap.c config.h
  574. terminfo.o : terminfo.c config.h
  575. tparam.o : tparam.c config.h
  576. undo.o : undo.c buffer.h commands.h config.h
  577. UNEXEC : config.h
  578. window.o : window.c indent.h commands.h window.h buffer.h config.h termchar.h
  579. xdisp.o : xdisp.c macros.h commands.h indent.h buffer.h dispextern.h termchar.h window.h config.h
  580. xfns.o : xfns.c xterm.h window.h config.h
  581. xmenu.o : xmenu.c xterm.h window.h config.h
  582. xterm.o : xterm.c xterm.h termhooks.h termopts.h termchar.h \
  583.  dispextern.h config.h sink.h sinkmask.h
  584.  
  585. x11fns.o : x11fns.c window.h x11term.h dispextern.h termchar.h config.h
  586. x11term.o : x11term.c x11term.h termhooks.h termopts.h termchar.h \
  587.  dispextern.h config.h sink.h sinkmask.h
  588.  
  589. /* The files of Lisp proper */
  590.  
  591. alloc.o : alloc.c window.h buffer.h config.h
  592. bytecode.o : bytecode.c buffer.h config.h
  593. data.o : data.c buffer.h config.h
  594. eval.o : eval.c commands.h config.h
  595. #ifdef AMIGA
  596.     /cpp/cpp >ram:cpp.c $(CPPFLAGS) $*.c
  597.     lc $(CFLAGS) -o$@ ram:cpp.c
  598. #endif
  599. fns.o : fns.c buffer.h commands.h config.h
  600. print.o : print.c process.h window.h buffer.h dispextern.h termchar.h config.h
  601. lread.o : lread.c buffer.h paths.h config.h
  602.  
  603. /* System-specific programs to be made.
  604.    OTHER_FILES, OBJECTS_SYSTEM and OBJECTS_MACHINE
  605.    select which of these should be compiled.  */
  606.  
  607. sunfns.o  : sunfns.c buffer.h config.h
  608.  
  609. ${etcdir}emacstool: ${etcdir}emacstool.c
  610.     cd ${etcdir}; ${MAKE} ${MFLAGS} emacstool
  611.  
  612. SimpleRexx.o: SimpleRexx.c SimpleRexx.h
  613. amiga_clipboard.o: amiga_clipboard.c termchar.h amiga.h config.h
  614.     lc -v $(CFLAGS) $*
  615. amiga_dump.o: amiga_dump.c termchar.h buffer.h dispextern.h regex.h amiga.h config.h
  616. amiga_menu.o: amiga_menu.c amiga.h config.h
  617.     /cpp/cpp >ram:cpp.c $(CPPFLAGS) $*.c
  618.     lc $(CFLAGS) -o$@ ram:cpp.c
  619. amiga_processes.o: amiga_processes.c amiga.h config.h
  620.     lc $(CFLAGS) -v amiga_processes.c
  621. amiga_rexx.o: amiga_rexx.c SimpleRexx.h amiga.h config.h
  622. amiga_screen.o: amiga_screen.c termchar.h dispextern.h amiga.h config.h
  623.     lc -v $(CFLAGS) $*
  624. amiga_serial.o: amiga_serial.c amiga.h config.h
  625. amiga_sysdep.o: amiga_sysdep.c termopts.h termhooks.h termchar.h dispextern.h \
  626.         amiga.h config.h
  627. amiga_term.o: amiga_term.c termopts.h termhooks.h  termchar.h config.h
  628. amiga_tty.o: amiga_tty.c termhooks.h termchar.h amiga.h config.h
  629. amiga_malloc.o: amiga_malloc.c amiga.h config.h
  630.